// 抽象成父类
export default class {
    constructor({ el = "#root" } = {}) {

        Promise.resolve().then(() => {
            this.el = $(el);
            return this.init();//异步
        })
    };
    async init() {
        this.render();
        this.handle();
        await this.mounted();
    };
    handle() { };
    render() { };
    mounted() { };//已经挂载完成
}